/**
 * @file StdoutLogAppender.h
 * @author  haifeng (haifengxiao@icloud.com)
 * @brief
 * @version 0.1
 * @date 2021-07-06
 *
 * @copyright Copyright (c) 2021
 *
 */

#pragma once

#include "LogAppender.h"

namespace Chen {
    namespace Log {

        class StdoutLogAppender : public LogAppender {
        public:
            typedef std::shared_ptr<StdoutLogAppender> ptr;

            /**
             * @brief Write log
             *
             * @param logger
             * @param level
             * @param event
             */
            virtual void log(std::shared_ptr<Logger> logger
                , LogLevel::Level level, LogEvent::ptr event) override;
        };

    }//namespace Log
}//namespace Chen

